<template>
    <div style="background-color: aqua;">
        我是女儿
        <button @click="$emit('girl',45)">向老爸汇报成绩</button>
        <p>我获得了5000奖学金，给老爸金库加点钱<button @click.once="store.increment(3000)">给爸爸钱</button></p>
    </div>
</template>

<script>
import {useMyStore} from '../store/myStore.js'
export default {
    data() {
        return {
            store:useMyStore()
        }
    },
}
</script>